Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Mixcloud Integration #46

Open
wants to merge 8 commits into
base: 2.5.x
Choose a base branch
from
Open

Basic Mixcloud Integration #46

wants to merge 8 commits into from

Conversation

asantoni
Copy link
Contributor

This branch completes a basic (but usable) implementation of Mixcloud integration, with:

  • OAuth authentication
  • Automatic uploading of recorded shows
  • Manual uploading

There's a few spots that leave a lot to be desired:

  • There's no error handling if an upload fails.
  • Airtime is missing most of the metadata fields that Mixcloud wants: Description, picture, tags
  • A Mixcloud account should perhaps be associated with a show instead of a global system-wide account (this idea comes from the Mixcloud team.)
  • In general, the code has a lot of copy paste from the SoundCloud code, which already has a lot of nastiness in it:
    • LibraryController.php has all the context menu items hardcoded in it.
    • utils/mixcloud-uploader.php has a terrible copy/paste of conf.php at the top to import our config when running on the CLI.
    • All the progress indicators are hardcoded for SoundCloud stuff, so we're just ignoring that for now.

Ultimately, the SoundCloud/Mixcloud features need to be refactored into a common base including some sort of general upload manager, but for now, this will have to do. (We're out of time...)

comiconomenclaturist and others added 7 commits August 29, 2013 16:26
	modified:   airtime_mvc/application/controllers/PreferenceController.php
	modified:   airtime_mvc/application/forms/Preferences.php
	modified:   airtime_mvc/application/models/Preference.php
	modified:   airtime_mvc/application/models/StoredFile.php
	modified:   airtime_mvc/application/views/scripts/form/preferences.phtml
	modified:   airtime_mvc/public/js/airtime/preferences/preferences.js
	modified:   airtime_mvc/public/js/airtime/preferences/support-setting.js
	airtime_mvc/application/forms/MixcloudPreferences.php
	airtime_mvc/application/models/Mixcloud.php
	airtime_mvc/application/views/scripts/form/preferences_mixcloud.phtml
	utils/mixcloud-uploader
	utils/mixcloud-uploader.php
	new file:   airtime_mvc/application/models/Mixcloud.php
	new file:   airtime_mvc/application/views/scripts/form/preferences_mixcloud.phtml
	new file:   utils/mixcloud-uploader
	new file:   utils/mixcloud-uploader.php
* Hide Mixcloud prefs unless you have client_id and client_secret setup
  in your airtime.conf
* Add the [mixcloud] section to default airtime.conf
@ghost ghost assigned naomiaro Nov 28, 2013
* Added better resilience to a missing [mixcloud] section in
  airtime.conf, will make upgrades simpler.
@fmoga
Copy link

fmoga commented Feb 14, 2014

Any plans of merging this soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants